Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.10.2
-
None
-
None
Description
A change of parameters like this:
@Parameter(defaultValue = "${project}", readonly = true, required = true)
into:
@Component
This will result in WARNINGs like this:
Warning: Deprecated @Component annotation for 'session' field in org.apache.maven.plugins.dependency.GetMojo: replace with @Parameter( defaultValue = "${session}", readonly = true )
The shown deprecation message is wrong. It is fine to use that for components to be injected.
Attachments
Issue Links
- is related to
-
MDEP-894 Use @Component instead of @Parameter for session/project
- Closed
- links to